<template>
  <el-table v-loading="loading" :data="infoList" @selection-change="handleSelectionChange">
    <el-table-column type="index" width="55" align="center"  label="序号"/>
    <el-table-column label="事项类型" align="center" prop="A"/>
    <el-table-column label="处罚类型" align="center" prop="B" />
    <el-table-column label="状态" align="center" prop="C" />
    <el-table-column label="创建时间" align="center" prop="D" />
    <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="550px">
      <template slot-scope="scope">
        <el-button
          size="mini"
          type="text"
          @click="handleInfo(scope.row)"
        >查看详情</el-button>
        <el-button
          size="mini"
          type="text"
          @click="handleInfo(scope.row)"
        >下载卫生监督意见书</el-button>
        <el-button
          size="mini"
          type="text"
          @click="handleInfo(scope.row)"
        >上传整改文件</el-button>
      </template>
    </el-table-column>
  </el-table>

  <!--<pagination
    v-show="total>0"
    :total="total"
    :page.sync="queryParams.pageNum"
    :limit.sync="queryParams.pageSize"
    @pagination="getList"
  />
-->
</template>

<script>
export default {
  name: 'xzchTable',
  data() {
    return {
      // 遮罩层
      loading: false,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 一企一档表格数据
      infoList: [
        {
          A:"行政处罚",
          B:"警告",
          C: "待整改",
          D:"2024-08-12 12:00:00",
        },
        {
          A:"行政处罚",
          B:"罚款",
          C: "待整改",
          D:"2024-08-12 12:00:00",
        },
        {
          A:"行政处罚",
          B:"没收违法所得",
          C: "待整改",
          D:"2024-08-12 12:00:00",
        },
        {
          A:"行政处罚",
          B:"责令停产停业",
          C: "待整改",
          D:"2024-08-12 12:00:00",
        },
        {
          A:"行政处罚",
          B:"吊销许可证",
          C: "待整改",
          D:"2024-08-12 12:00:00",
        },
      ],
      // 查询参数
      queryParams: {

      },
      // 表单参数
    };
  },
  /*props: {
    editVisible: {
      type: Boolean,
      default: () => {
        return false
      }
    }
  },
  watch:{

  },
  computed: {
    show: {
      get () {
        return this.editVisible
      },
      set (val) {
        this.$emit('update:editVisible', val)
      }
    },
  },*/
  methods :{
    handleInfo(row) {

     //  alert("待做")
    },
  }

}
</script>

<style>

</style>
